﻿
						{dede:php}
							$mysql = "SELECT t1.id,t1.title,t2.area,t2.shopName,t2.address FROM dede_archives t1 LEFT JOIN dede_addon4sks t2 ON t1.id = t2.aid WHERE t2.typeid='12' AND t2.sftjjxs = '是' limit 0,5";
                            $con = mysql_connect($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd);
							mysql_select_db($cfg_dbname, $con);
							mysql_query("SET NAMES ".$cfg_db_language); 							
							$query = mysql_query($mysql); 
							$n=mysql_num_rows($query);
							
							while($row = mysql_fetch_array($query,MYSQL_ASSOC)) {
							      echo '<li class="n" ><a target="_blank" href="javascript:void(0);"  onclick="window.open(\'./view.php?aid='.$row["id"].'\');return false;" >'.$row["shopName"].'</a></li>';
								  
							}
							mysql_close($con);
						{/dede:php}